package com.yanfan.web.controller.userSmart;

import com.yanfan.common.core.controller.BaseController;
import com.yanfan.common.core.page.TableDataInfo;

import com.yanfan.usersmart.domain.UserSmart;
import com.yanfan.usersmart.service.IUserSmartService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "用户信息传输装置")
@RestController
@RequestMapping("/userSmart/list")
public class UserSmartController extends BaseController {
    @Autowired
    private IUserSmartService userSmartService;
    /**
     * 查询【请填写功能名称】列表
     */
    //@PreAuthorize("@ss.hasPermi('iot:smart:list')")
    @GetMapping("/list")
    @ApiOperation("查询用户信息传输装置列表")
    public TableDataInfo list(UserSmart userSmart)
    {
        startPage();
        List<UserSmart> list = userSmartService.selectUserSmartList(userSmart);
        return getDataTable(list);
    }



}
